﻿using System.Diagnostics;
using Byond.EnsembleLibrary;
using Mvvm;

namespace Byond.Standalone.ViewModels
{
	internal class LibrarySettingsViewModel : ViewModelBase
	{
		private readonly Env _env;
		private readonly Library _library;

		public string LibraryPath { get { return _env.RootPath; } }

		public void ResetLibrary()
		{
			_library.ResetToFactoryDefaults(false);
		}

		public void OpenInExplorer()
		{
			Process.Start("Explorer", @"""" + _env.RootPath + @"""");
		}
	}
}